//
//  UIView+IBExtension.swift
//  HJWeiBo
//
//  Created by 夏航军 on 16/9/22.
//  Copyright © 2016年 夏航军. All rights reserved.
//

import UIKit

extension UIView {
    
    
    // @IBInspectable :定义可视化属性
    @IBInspectable var cornerRadius : CGFloat {
        
        set {
            layer.cornerRadius = newValue
            layer.masksToBounds = newValue > 0
        }
        get {
            return layer.cornerRadius
        }
    }
}
